<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.tjsinfo.tjsoa.address.personal.TAddresslistPersonal,com.tjsinfo.tjsoa.common.DayFormat;" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	TAddresslistPersonal personalFind = (TAddresslistPersonal) request.getAttribute("personalFind");
	String Page=String.valueOf(request.getParameter("page"));
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天津市粮油集团有限公司 OA办公自动化协作平台</title>
<link href="<%=basePath %>address/style/css.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
		window.onload = function(){parent.iFrameHeight();}
			function sub(){
				var chinese_name=document.getElementById("chinese_name").value;
				if(chinese_name==null || chinese_name.length==0){
					alert('姓名不能为空!');
				}else{
					document.personalUpdate.submit();
				}
			}
		</script>
	<style>
		body{font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif;}
		a{color:#000; text-decoration:none;}
		.img{border:0px;}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: gray;
			z-index:1001;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=80);
		}
		.list_01 {
			display: none;
			position: absolute;
			top: 25%;
			left: 35%;
			width: 355px;
			height: 135px;
			border: 16px solid #FFF;
			border-bottom:none;
			background-color: white;
			z-index:1002;
			overflow: auto;
		}
		.list_01 li{
		width:117px; float:left
		}
		.tree {
			display: none;
			position: absolute;
			top: 25%;
			left: 35%;
			width: 255px;
			height: 235px;
			border: 16px solid #FFF;
			border-bottom:none;
			background-color: white;
			z-index:1002;
			overflow: auto;
		}
	</style>
 	<script type="text/javascript" src="<%=basePath %>address/js/selectDateTime.js"></script>
</head>

<body>
<div id="tab_01" style="width:100%;height:505px;">
    <h2>查看或修改个人通讯录</h2>
   	<div id="tree" class="tree"></div>
  <div class="tab_add" style="width:100%;">
    <form name="personalUpdate" action="<%=basePath %>tjsinfo/tjsoa/address/personalUpdate.do?page=<%=Page %>" method="post">
	  <hr size="1" noshade="noshade" style="border:1px #D0D0D0 solid" />
	  <table width="100%" border="0" cellspacing="0" class="tab_add01">
        <tr>
          <th width="25%">姓名：<input type="hidden" name="id" value="<%=personalFind.getId() %>"/></th>
          <td width="75%"><input type="text" value="<%=personalFind.getChineseName() %>" size="13" name="chinese_name" id="chinese_name"/> <span>*</span>
          &nbsp;&nbsp;曾用名：&nbsp;
          <input type="text" value="<%if(personalFind.getBeforeName()!=null){ %><%=personalFind.getBeforeName() %><%} %>" size="13" name="before_name" id="before_name"/>
          &nbsp;&nbsp;英文名：&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="text" value="<%if(personalFind.getEnglishName()!=null){ %><%=personalFind.getEnglishName() %><%} %>" size="13" name="english_name" id="english_name"/>
          </td>
        </tr>
        <tr>
          <th>职务：</th>
          <td><input type="text" value="<%if(personalFind.getOfficeship()!=null){ %><%=personalFind.getOfficeship() %><%} %>" size="13" name="officeship" id="officeship"/>
          &nbsp;&nbsp;出生年月：
          <input type="text" value="<%if(personalFind.getBirthday()!=null){ %><%=DayFormat.getFormatDate(personalFind.getBirthday(),"yyyy-MM-dd") %><%} %>" size="13" name="birthday" id="birthday" onfocus="selectDate(this)" readonly="readonly"/>
          &nbsp;&nbsp;性别：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <select name="sex" id="sex">
          <option value="0" <%if(personalFind.getSex()!=null && personalFind.getSex().equals("0"))out.println(" selected='selected'"); %>>男</option><option value="1" <%if(personalFind.getSex()!=null && personalFind.getSex().equals("1"))out.println(" selected='selected'"); %>>女</option>
          </select>
          </td>
        </tr>
        <tr>
          <th>部门：</th>
          <td><input type="text" value="<%if(personalFind.getDepartment()!=null){ %><%=personalFind.getDepartment() %><%} %>" size="13" name="department" id="department"/>
          &nbsp;&nbsp;邮政编码：
          <input type="text" value="<%if(personalFind.getPostCode()!=null){ %><%=personalFind.getPostCode() %><%} %>" size="13" name="post_code" id="post_code"/>
          &nbsp;&nbsp;传真电话：
          <input type="text" value="<%if(personalFind.getFaxNo()!=null){ %><%=personalFind.getFaxNo() %><%} %>" size="13" name="fax_no" id="fax_no"/>
          </td>
        </tr>
        <tr>
          <th>手机：</th>
          <td><input type="text" value="<%if(personalFind.getMobile()!=null){ %><%=personalFind.getMobile() %><%} %>" size="13" name="mobile" id="mobile"/>
          &nbsp;&nbsp;办公电话：
          <input type="text" value="<%if(personalFind.getOfficePhone()!=null){ %><%=personalFind.getOfficePhone() %><%} %>" size="13" name="office_phone" id="office_phone"/>
          &nbsp;&nbsp;家庭电话：
          <input type="text" value="<%if(personalFind.getFamilyPhone()!=null){ %><%=personalFind.getFamilyPhone() %><%} %>" size="13" name="family_phone" id="family_phone"/>
          </td>
        </tr>
        <tr>
          <th>E_mail：</th>
          <td><input type="text" value="<%if(personalFind.getEmail()!=null){ %><%=personalFind.getEmail() %><%} %>" size="30" name="email" id="email"/>
          &nbsp;&nbsp;单位：
          <input type="text" value="<%if(personalFind.getCompany()!=null){ %><%=personalFind.getCompany() %><%} %>" size="37" name="company" id="company"/>
          </td> 
        </tr>  
        <tr>
          <th>内线电话：</th>
          <td><input type="text" value="<%if(personalFind.getInlineNo()!=null){ %><%=personalFind.getInlineNo() %><%} %>" size="85" name="inline_no" id="inline_no"/></td>
        </tr>    
        <tr>
          <th>办公地址：</th>
          <td><input type="text" value="<%if(personalFind.getComAddress()!=null){ %><%=personalFind.getComAddress() %><%} %>" size="85" name="com_address" id="com_address"/></td>
        </tr>
        <tr>
          <th>家庭住址：</th>
          <td><input type="text" value="<%if(personalFind.getFamilyAddress()!=null){ %><%=personalFind.getFamilyAddress() %><%} %>" size="85" name="family_address" id="family_address"/></td>
        </tr>
        <tr>
          <th>备注：</th>
          <td><textarea name="alt" id="alt" cols="62"><%if(personalFind.getAlt()!=null){ %><%=personalFind.getAlt() %><%} %></textarea></td>
        </tr>
        <tr>
          <th colspan="2"><div class="tab_btn"><a onclick="sub()" style="cursor:hand"><img src="<%=basePath %>address/images/sub_btn.gif" width="40" height="15" border="0" /></a>&nbsp;&nbsp;&nbsp;<a href="<%=basePath %>tjsinfo/tjsoa/address/personalList.do?page=<%=Page %>" style="cursor:hand"><img src="<%=basePath %>address/images/cancel.gif" width="40" height="15" border="0" /></a></div></th>
        </tr>
      </table>
 
    </form>
  </div>
  <div class="clear"></div>
</div>
</body>
</html>
